package cyy.example.com.facotry.model;

/**
 * Created by ChenYiYao on 2018/12/3.
 * des :
 */
public class PushModel {

    /**
     * policy : {"expire_time":"2018-12-14 11:50:49"}
     * description : 任务描述11.23
     * production_mode : false
     * appkey : 5bfba03bf1f5563adf000107
     * payload : {"body":{"title":"任务标题11.23","ticker":"任务标题11.23","text":"任务内容10.12","after_open":"go_app","play_vibrate":"false","play_lights":"false","play_sound":"true"},"display_type":"notification","extra":{"companyId":"1631","msgType":"1","companyName":"B科技公司","standardValue":"6-9","siteId":"8881","siteName":"B站位","time":"2018-12-07 15:18:00","paramName":"PH","paramValue":"4"}}
     * alias : 100
     * alias_type : USER_TOKEN_ALICE_TYPE
     * type : customizedcast
     * timestamp : 1544607791372
     */

    private PolicyBean policy;
    private String description;
    private boolean production_mode;
    private String appkey;
    private PayloadBean payload;
    private String alias;
    private String alias_type;
    private String type;
    private String timestamp;

    public PolicyBean getPolicy() {
        return policy;
    }

    public void setPolicy(PolicyBean policy) {
        this.policy = policy;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public boolean isProduction_mode() {
        return production_mode;
    }

    public void setProduction_mode(boolean production_mode) {
        this.production_mode = production_mode;
    }

    public String getAppkey() {
        return appkey;
    }

    public void setAppkey(String appkey) {
        this.appkey = appkey;
    }

    public PayloadBean getPayload() {
        return payload;
    }

    public void setPayload(PayloadBean payload) {
        this.payload = payload;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getAlias_type() {
        return alias_type;
    }

    public void setAlias_type(String alias_type) {
        this.alias_type = alias_type;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public static class PolicyBean {
        /**
         * expire_time : 2018-12-14 11:50:49
         */

        private String expire_time;

        public String getExpire_time() {
            return expire_time;
        }

        public void setExpire_time(String expire_time) {
            this.expire_time = expire_time;
        }
    }

    public static class PayloadBean {
        /**
         * body : {"title":"任务标题11.23","ticker":"任务标题11.23","text":"任务内容10.12","after_open":"go_app","play_vibrate":"false","play_lights":"false","play_sound":"true"}
         * display_type : notification
         * extra : {"companyId":"1631","msgType":"1","companyName":"B科技公司","standardValue":"6-9","siteId":"8881","siteName":"B站位","time":"2018-12-07 15:18:00","paramName":"PH","paramValue":"4"}
         */

        private BodyBean body;
        private String display_type;
        private ExtraBean extra;

        public BodyBean getBody() {
            return body;
        }

        public void setBody(BodyBean body) {
            this.body = body;
        }

        public String getDisplay_type() {
            return display_type;
        }

        public void setDisplay_type(String display_type) {
            this.display_type = display_type;
        }

        public ExtraBean getExtra() {
            return extra;
        }

        public void setExtra(ExtraBean extra) {
            this.extra = extra;
        }

        public static class BodyBean {
            /**
             * title : 任务标题11.23
             * ticker : 任务标题11.23
             * text : 任务内容10.12
             * after_open : go_app
             * play_vibrate : false
             * play_lights : false
             * play_sound : true
             */

            private String title;
            private String ticker;
            private String text;
            private String after_open;
            private String play_vibrate;
            private String play_lights;
            private String play_sound;

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getTicker() {
                return ticker;
            }

            public void setTicker(String ticker) {
                this.ticker = ticker;
            }

            public String getText() {
                return text;
            }

            public void setText(String text) {
                this.text = text;
            }

            public String getAfter_open() {
                return after_open;
            }

            public void setAfter_open(String after_open) {
                this.after_open = after_open;
            }

            public String getPlay_vibrate() {
                return play_vibrate;
            }

            public void setPlay_vibrate(String play_vibrate) {
                this.play_vibrate = play_vibrate;
            }

            public String getPlay_lights() {
                return play_lights;
            }

            public void setPlay_lights(String play_lights) {
                this.play_lights = play_lights;
            }

            public String getPlay_sound() {
                return play_sound;
            }

            public void setPlay_sound(String play_sound) {
                this.play_sound = play_sound;
            }
        }

        public static class ExtraBean {
            /**
             * companyId : 1631
             * msgType : 1
             * companyName : B科技公司
             * standardValue : 6-9
             * siteId : 8881
             * siteName : B站位
             * time : 2018-12-07 15:18:00
             * paramName : PH
             * paramValue : 4
             */

            private String companyId;
            private String msgType;
            private String companyName;
            private String standardValue;
            private String siteId;
            private String siteName;
            private String time;
            private String paramName;
            private String paramValue;

            public String getCompanyId() {
                return companyId;
            }

            public void setCompanyId(String companyId) {
                this.companyId = companyId;
            }

            public String getMsgType() {
                return msgType;
            }

            public void setMsgType(String msgType) {
                this.msgType = msgType;
            }

            public String getCompanyName() {
                return companyName;
            }

            public void setCompanyName(String companyName) {
                this.companyName = companyName;
            }

            public String getStandardValue() {
                return standardValue;
            }

            public void setStandardValue(String standardValue) {
                this.standardValue = standardValue;
            }

            public String getSiteId() {
                return siteId;
            }

            public void setSiteId(String siteId) {
                this.siteId = siteId;
            }

            public String getSiteName() {
                return siteName;
            }

            public void setSiteName(String siteName) {
                this.siteName = siteName;
            }

            public String getTime() {
                return time;
            }

            public void setTime(String time) {
                this.time = time;
            }

            public String getParamName() {
                return paramName;
            }

            public void setParamName(String paramName) {
                this.paramName = paramName;
            }

            public String getParamValue() {
                return paramValue;
            }

            public void setParamValue(String paramValue) {
                this.paramValue = paramValue;
            }
        }
    }
}
